package com.biz.primus.model.order.coupon.vo.consume;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 可用券/积分查询 返回模型
 *
 * @author Tiger Feng
 * @date 2017年11月17日
 */
@Data
public class QueryCanUseCouponRespVO implements Serializable {
    private static final long serialVersionUID = -8152415521752967708L;

    @JsonProperty("data")
    private Data data;
    @JsonProperty("elapsed")
    private String elapsed;
    @JsonProperty("returncode")
    private String returnCode;



    @lombok.Data
    public class Data implements Serializable{
        private static final long serialVersionUID = -4180412303795727929L;
        // 返回所有券/积分付款方式的商品分摊
        @JsonProperty("bill_detail")
        private BillDetailVO billDetail;
        // "calc_billid": "FB3AC74EF6874DB8BD7D6AF02809AFD3",
        @JsonProperty("calc_billid")
        private String calcBillId;
        // "calc_scene": "USERULE",
        @JsonProperty("calc_scene")
        private String calcScene;
        // JSON数组描述的用券/积分清单
        @JsonProperty("coupon_uses")
        private List<CouponUseVO> couponUses;
        @JsonProperty("freight_pop_amount")
        private Double freightPopAmount;
    }
}
